#include "StdAfx.h"
#include "MySppCom.h"

CMySppCom::CMySppCom(void)
{
}

CMySppCom::~CMySppCom(void)
{
}

void CMySppCom::OpenConnection( BD_ADDR bda , char* szServiceName )
{
	CSppClient::SPP_CLIENT_RETURN_CODE retCode = CSppClient::CreateConnection( bda , szServiceName );
	short com = 15;
	retCode = CSppClient::CreateCOMPort( &com );

	MessageBox( NULL , L"OK" , L"OK" , MB_OK );
}

void CMySppCom::OnClientStateChange(BD_ADDR bda, DEV_CLASS dev_class, BD_NAME name, short com_port, SPP_STATE_CODE state)
{
	//switch( state )
	//{
	//case :
	//	break;
	//}
}

void CMySppCom::OnServerStateChange(BD_ADDR bda, DEV_CLASS dev_class, BD_NAME name, short com_port, SPP_STATE_CODE state)
{
}